/**
 * Copyright (C), 2019-2020, 宇信融汇
 * FileName: ComparableDemo
 * Author:   666
 * Date:     2020/7/12 21:15
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package c_008.collection;

import java.util.TreeSet;

/**
 * @Classname ComparableDemo
 * @Description TODO
 * @Date 2020/7/12 21:15
 * @Created by 666
 */
public class ComparableDemo {
    public static void main(String[] args) {
        TreeSet t = new TreeSet();

        t.add(new Person("lisi",14));
        t.add(new Person("wamngwu",121));
        t.add(new Person("zhanglif2",111));
        t.add(new Person("zhangsna",12));

        System.out.println(t);

    }
}
